﻿using JuCheap.Core.Models.System;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace JuCheap.Core.Interfaces
{
    public interface IWorkerService
    {
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="dto">用户模型</param>
        /// <returns></returns>
        Task<string> AddAsync(WorkerAddDto dto);

        Task<bool> DeleteAsync(int workerId);

        Task<WorkerUpdateDto> UpdateAsync(WorkerUpdateDto dto);

        Task<WorkerDto> GetAsync(int workerId);
    }
}
